Jelgava is in coast of river Lielupe. River Lielupe is connect to Baltic sea.
You can rent taxi if arrive from Riga or Riga airport.
A bus line from Riga, 45-50min for approx. 1,5Ls